Using the ggmcmc package
نویسنده
چکیده
ggplot2, based on the grammar of graphics (Wilkinson et al. 2005), empowers R users by allowing them to flexibly crate graphics (Wickham 2009). Based on this idea, ggmcmc is aimed at bringing the design and implementation of ggplot2 to MCMC diagnostics, allowing Bayesian inference users to have better and more flexible visual diagnostic tools. ggplot2 is based on the idea that the input of any graphic is a data frame mapped to aesthetic attributes (colour, size) of geometric objects (points, lines). Therefore, in order to create a graphic the three components must be supplied: a data frame, at least one aesthetic attribute and at least one geometric object. The flexibility comes from the fact that it is very easy to extend basic graphics by including more aesthetic elements and geometric objects, and even faceting the figure to generate the same plot for different subsets of the dataset (Wickham 2009, 3). The implementation of ggmcmc follows this scheme and is based on a function (ggs()) that transforms the original input (time series of sampled values for different parameters and chains) into a data frame that is used for all the graphing functions. The plotting functions do any necessary transformation to the samples and return a ggplot object, which can be plotted directly into the working device or simply stored as an object, as any other ggplot object. Finally, getting ggplot objects as the output of the plotting functions has also a positive effect: while the defaults in ggmcmc have been carefully chosen, the user later can tweak any graph by—following the ideas of the grammar of graphics—adding other geometric figures, layers of data, contextual information (titles, axis) or applying themes. So, to sum up, the implementation is driven by the following steps:
منابع مشابه
ggmcmc: Analysis of MCMC Samples and Bayesian Inference
ggmcmc is an R package for analyzing Markov chain Monte Carlo simulations from Bayesian inference. By using a well known example of hierarchical/multilevel modeling, the article reviews the potential uses and options of the package, ranging from classical convergence tests to caterpillar plots or posterior predictive checks. This R vignette is based on the article published at the Journal of St...
متن کاملInvestigating the Effect of Package Parameters on Driver Comfort Using the DOE Method and the DHM Ergonomics Analysis Tool
Background and Objectives: Due to the necessity of the proper driver packaging, setting parameters for the driver to achieve the highest ergonomics of the driver has a great importance. The range of variations in some parameters of the package is wide, and the correct selection of the packaging parameters until to achieve driver’s ergonomics position, requires some tests. Methods: In this stud...
متن کاملEffectiveness of the Self-determination Educational Package on Self-directed Learning and Decision-making Styles among High School Students
Introduction: The purpose of this study was to develop a self-determination educational package and determine its effectiveness on Self-Directed Learning and Decision making Styles of high school students. Methods: The research method was semi-experimental with pre-test, post-test with the control group and follow up. At first, self-determination educational package was compiled using library s...
متن کاملThe Effect of Teaching Meta-cognition Package on Self-Directed Learning in Medical Records Students of Isfahan University of Medical Sciences
Introduction: The ongoing rapid changes in science bring about the need of higher education to indepen-dent and self-directed learners. This study seeks the effect of meta-cognition package training on self-directed learning in medical records students. Methods: In this quasi-experimental study using two group design with pre-test and post-test, 24 female and male medical records students were...
متن کاملMeta-Analysis in R Using Package rmeta
Meta-Analysis means a statistical analysis on the results of their findings is to combine a large number of independent studies. Meta-Analysis software is needed to be done for convenience, Statistical Software for Meta-Analysis is available in many statistical packages available in the present study provide software R is for Meta-Analysis. First, a brief description of the Meta-Analysis, Stati...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2016